Repository navigation
docs(skills): objectstack-ai teaches the ask_ai action, the Ask AI button on a record - #37372
Conversation
…tton on a record The AI skill now has a subsection under Actions as AI Tools for `type: 'ask_ai'`: what the action does (pins the assistant's conversation to the record it runs on and opens it, sending no message), where it is declared (`locations: ['record_header']` or `['record_more']`, with a `defineAction` example that type-checks against the spec), what the parse refuses beside it (`target`, `ai.exposed: true`, a dashboard header `actionType: 'ask_ai'`), that nothing serves it headless (`list_actions` skips it, `run_action` refuses it, no `action_` tool), and that the console draws it only where the assistant surface is on and the AI service honours a conversation focus. Paid for by deleting restatement in the same file; the token ceiling is unchanged (6801; the file measures 6786). A new eval case asks for an Ask AI button on the contract record page. Claude-Session: https://claude.ai/code/session_01Utp6CZfqUFGzpwvVwRfzYS Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head e16ec49 · 2026-11-26T00:22Z The seat runs the at-tier contract review of this head through an isolated sub-agent; L1 is the seat's own. |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: PR #37372, card #37217. Net diff against ① Derived judgments
② Semver level
Ratchet claim: the ceiling row for
③ Boundary flags
④ Design judgment
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
The changeset states the measured token count (6787) and says why the Blueprint row was stale rather than restated. Eval case 10's must_not_contain keeps only `target:`, a token a correct answer never carries, and case 9's reference answer no longer spells the `chunkSize` token it forbids, so both references pass the grader they declare. Claude-Session: https://claude.ai/code/session_01Utp6CZfqUFGzpwvVwRfzYS Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head 05555e0 · 2026-11-26T00:48Z The seat runs the at-tier contract review of this head through an isolated sub-agent; L1 is the seat's own. |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: PR #37372, card #37217. This record replaces the one on head e16ec49. The delta from that head is one commit touching two files, the changeset and the eval fixture. ① Derived judgments
② Semver level
Ratchet: the ceiling row for
③ Boundary flags
④ Design judgment
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 维护者速读
席位意见:ACCEPT。新段落逐句对得上 main 的代码和 ADR-0160 D7,首轮两条 should-fix 已修,delta 复核无必改项。 席位核对Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: PR #37372, card #37217. This record replaces the one on head e16ec49. The delta from that head is one commit touching two files, the changeset and the eval fixture. ① Derived judgments
② Semver level
Ratchet: the ceiling row for
③ Boundary flags
④ Design judgment
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: PR #37372, card #37217. This record replaces the one on head e16ec49. The delta from that head is one commit touching two files, the changeset and the eval fixture. ① Derived judgments
② Semver level
Ratchet: the ceiling row for
③ Boundary flags
④ Design judgment
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Approval requested (Tier H, |
Requested by Bill · project thread
repo:objectstack#5 · os-bill · session_01Utp6CZfqUFGzpwvVwRfzYS
Fixes #37217
Clause-②: no
Metadata-protocol: none
Skills-docs: this PR is the skills-docs half (
skills/objectstack-ai) owed by PR #37215 (Skills-docs: follow-up owed — skills/objectstack-ai/SKILL.md); theask_aiaction itself shipped in PR #37215维护者速读
What changes
skills/objectstack-ai/SKILL.md, a new subsection The Ask AI button —type: 'ask_ai'at the end of Actions as AI Tools:locations: ['record_header']or['record_more'], with adefineActionexample markedos:check(type-checked against the built spec bycheck:skill-examples).target,ai.exposed: true, andactionType: 'ask_ai'on a dashboard header (a header runs on no record).list_actionsskips it,run_actionrefuses it, and noaction_tool exists for it.Paid for by deleting restatement in the same file; the token ceiling is unchanged (6801, the file measures 6787). Deleted: the App AI Blueprint table (its first two rows restate Skill Configuration and the
KnowledgeServicePluginwiring; its third row's claim thatagents/tools/skillsare the only AI stack collections was stale, sinceaiContextsis adefineStackkey too); the alias sentence under Platform agents (data_chat/metadata_assistantfor old bookmarks: the agent type is closed to third parties, so no author writes either); the pointer toreferences/_index.mdforAgentSchema(the References section already points there); the rung-2 sentence "Read that file for the exact set" (the sentence before it names the file); the two product-analogy parentheticals besideaskandbuild; and the memory clause of pitfall 1, kept to its two facts (the required keys and that there is no storage backend to choose).evals/skills-tools-knowledge.json:defineActionwithtype: 'ask_ai',objectName: 'contract',locations: ['record_header'], notarget, noai.exposed: true, with the headless and absent-not-disabled facts. Assertions: must containask_ai,record_header,locations; must not containtarget:(only that token: a correct answer may well spellexposed: trueoractionTypewhile stating the refusals, so neither can be forbidden under the grader's literal-substring rule).chunkSizetoken it forbids (it now says "no chunk-size key"); the assertions are unchanged.Changeset
.changeset/37217-skill-ask-ai-action.md:@objectstack/skillspatch, carrying the two declaration lines.Out of scope, left where it lives: the
objectstack-uiaction-type row (landed in PR #37215); theai_contextteaching (#37177, same skill tree, unclaimed until this lands).Why
PR #37215 (#37142) added the
ask_aiaction type and its console executor, and declaredSkills-docs: follow-up owed — skills/objectstack-ai/SKILL.md. The UI skill's action-type table has the row; the AI skill, the one an author reads when wiring the assistant, did not mention the action, so an agent asked for an Ask AI button would reach forai.exposed: trueor atarget, both refused at parse.Verification
Every claim in the new passage rests on
mainat 98bda0a:packages/spec/src/ui/action.zod.ts(ActionTypecarriesask_ai;TARGETLESS_TYPES;refuseAskAiContradictionsrefusestargetandai.exposed: true),packages/spec/src/ui/dashboard.zod.ts(refuseRecordlessAskAion the header action),packages/runtime/src/action-execution.ts(isHeadlessInvokableActionanswersfalse; the door'sask_aisentence),ui/packages/app-shell/src/hooks/useAiSurface.ts(enabled+focusServed,capabilities.focus) anduseAskAiHandler.ts,docs/adr/0160-record-scoped-ai-inquiry.mdD7, andexamples/app-showcase/src/ui/actions/index.ts(showcase_ask_about_task, the same shape as the example).Skills size readings (
node scripts/check-skills-token-ratchet.mjs, tokens = ceil(utf8 bytes / 4)):skills/objectstack-ai/SKILL.mdlinesskills/objectstack-ai/SKILL.mdtokens (ceiling 6801)skills/*/SKILL.mdlinesThe bundle grows by 218 tokens: +231 in the unratcheted eval fixture (2444 to 2675), −13 in ratcheted authored text.
Rework at 05555e0 (contract review 7178774511, PASS with two should-fixes and a nit): the changeset's token count reads 6787 (measured), the Blueprint-row reason says stale rather than restated, case 10's
must_not_containkeeps onlytarget:, and case 9's reference drops the literalchunkSize. The grader the cases declare (packages/qa/scenarios/src/skill-evals/grade.ts,gradeAnswer) run over each case's ownexpected_output:Re-run on the new head:
check-skills-token-ratchet(6787/6801),check-empty-changeset,check-changeset-no-major,check:nul-bytes, all exit 0;check-commit-card-trailers --range origin/main..HEADexit 0 (2 commits);overlap-check --branch=HEADVERDICT clean. The skill file is byte-identical to e16ec49, so the gates below still describe it.Local gates at e16ec49
node scripts/pm/dispatch-gates.mjs --commandsderived 49 commands (run from the committed head, reconciled with--ran: 49 derived, 48 run, 1 NOT-MEASURED, 0 UNRUN). 48 ran locally, all exit 0, includingcheck-skills-token-ratchet(gate and--self-test),@objectstack/spec check:skill-docs,check:skill-links,check:skill-identifier-liveness,check:skill-compatibility,check:skill-frame-sync,check:doc-authoring,check:corpus-claim-drift,check:nul-bytes,check:role-word,check-empty-changeset,check-changeset-no-major,check-adr-0087-registration,check:pm-governed-merges,check:published-files,check:dts-closure,check:lean-entry-closure,@objectstack/lint check:doc-formula-expressions.NOT MEASURED locally, left to CI:
check:dual-build-cjs-loads(exit 3, prerequisite: reads every package's builtdist; onlyspec,client,client-reactand their closure were built here). The diff touches no package source.Outside the derived set, run because the card's acceptance names it:
@objectstack/spec check:skill-examplesexit 0 — 351 marked examples across 3 surfaces type-check, the newos:checkblock included (tscran the semantic pass on all of them, against the built@objectstack/spec).Pre-push:
check-commit-card-trailers --range origin/main..HEADexit 0;overlap-check --branch=HEADVERDICT clean (origin/main and the one open PR sharingskills/objectstack-ai/SKILL.md, #35129, both merge cleanly).No ablation: the change is docs and an eval fixture; no tested behaviour moved.
Two-minute check: read The Ask AI button in
skills/objectstack-ai/SKILL.mdbesiderefuseAskAiContradictionsinpackages/spec/src/ui/action.zod.tsand D7 of ADR-0160.Acceptance notes
dispatch-gates --tiermandates claude-fable-5-2 forskills/**; this account serves 5-1). The compensating control is the contract review at CONTRACT_REVIEW_TIER, owed on the handoff.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses. (repo-wide lint is CI's run; the diff touches only Markdown and JSON)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CZfqUFGzpwvVwRfzYS